﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zero.DAL;
using Zero.Model;

namespace Zero.BLL
{
    public class Organization
    {
        public string[] ShowOrganizationInfo()
        {
            DAL.Organization dal=new DAL.Organization();
            return dal.ShowOrganizationInfo();
        }

        /// <summary>
        /// 通过机构ID获取机构信息
        /// </summary>
        /// <param name="OrganizedID">机构ID</param>
        /// <returns></returns>
        public List<organization> GetOrganizationByID(int OrganizedID)
        {
            return new DAL.Organization().GetOrganizationByID(OrganizedID);
        }

        /// <summary>
        /// 通过角色ID获取机构集合
        /// </summary>
        /// <param name="RoleID">用户ID</param>
        /// <returns></returns>
        public List<organization> GetOrganizationsByRoleID(int RoleID)
        {
            return new DAL.Organization().GetOrganizationsByRoleID(RoleID);
        }
    }
}
